package com.example.demo.importdemo.importBeanDefinitionRegistrar;

import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.startup.UserConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Service
@Slf4j
public class MyImportService {

    @Autowired
    private UserConfig userConfig;

    @PostConstruct
    public void init(){
        log.info(userConfig.getDirectoryName());
    }
}
